<?php defined('IN_IA') or exit('Access Denied');?><!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>虔诚供佛</title>
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no, email=no" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script type="text/javascript" src="<?php echo MODULE_URL;?>public/fo/js/flexible.js"></script>
    <script type="text/javascript" src="<?php echo MODULE_URL;?>public/fo/js/pageLoading.js"></script>
    <script type="text/javascript" src="<?php echo MODULE_URL;?>public/fo/js/jquery.js"></script>
    <link type="text/css" rel="stylesheet" href="<?php echo MODULE_URL;?>public/fo/css/index.css">
    <link type="text/css" rel="stylesheet" href="<?php echo MODULE_URL;?>public/fo/css/diligence_list.css">
    <link type="text/css" rel="stylesheet" href="<?php echo MODULE_URL;?>public/fo/css/record.css">
    <link type="text/css" rel="stylesheet" href="<?php echo MODULE_URL;?>public/fo/css/tablet.css">
    <link type="text/css" rel="stylesheet" href="<?php echo MODULE_URL;?>public/fo/css/tribute.css">
    <link type="text/css" rel="stylesheet" href="<?php echo MODULE_URL;?>public/fo/css/back.css">
</head>
<body>

<script src="<?php echo MODULE_URL;?>public/fo/js/zepto.min.js"></script>
<div class="pagebox" style=" background: url(<?php echo MODULE_URL;?>public/fo/images/bg.png) no-repeat;  background-size: 100% auto;">
    <div class="music">
        <!--<audio src=" ../addons/we7_shangfo/static/Home/music/mercy.mp3" autoplay loop></audio>-->
        <audio src="http://baifo.b0.upaiyun.com/music/mercy.mp3" autoplay loop></audio>
    </div>
    <!-- 佛像 -->
    <div class="joss">
        <img src="<?php echo MODULE_URL;?>public/fo/images/fo.png" alt="佛像">
    </div>
<<<<<<< HEAD
=======
    <!-- 佛像 -->
    
    

>>>>>>> fa1dd009fda52c7a1bc4d8fe95af5c9f2330913f
    <!--判断是否上佛-->
    <?php  if($_GET['status'] != 1) { ?>
    <div class="vase">
        <img src="<?php echo MODULE_URL;?>public/fo/images/hp_no.png" alt="空花瓶">
    </div>
    <div class="vase two">
        <img src="<?php echo MODULE_URL;?>public/fo/images/hp_no.png" alt="空花瓶">
    </div>
    <div class="compote">
        <img src="<?php echo MODULE_URL;?>public/fo/images/gp_no.png" alt="空果盘">
    </div>
    <div class="compote two">
        <img src="<?php echo MODULE_URL;?>public/fo/images/gp_no.png" alt="空果盘">
    </div>
    <div class="censer">
        <img src="<?php echo MODULE_URL;?>public/fo/images/xl_no.png" alt="空香炉">
    </div>
    <?php  } else { ?>
         <div class="groly">
            <div class="circle"></div>
        </div>
        <div class="bottle">
            <img src="<?php echo MODULE_URL;?>public/fo/images/xl_no.png" alt="中水">
        </div>
        <div class="vase">
            <img src="<?php echo MODULE_URL;?>public/fo/images/a1.png" alt="空花瓶">
        </div>
        <div class="vase two">
            <img src="<?php echo MODULE_URL;?>public/fo/images/a1.png" alt="空花瓶">
        </div>
        <div class="compote">
            <img src="<?php echo MODULE_URL;?>public/fo/images/a3.png" alt="空果盘">
        </div>
        <div class="compote two">
            <img src="<?php echo MODULE_URL;?>public/fo/images/a3.png" alt="空果盘">
        </div>
        <div class="censer">
            <img src="<?php echo MODULE_URL;?>public/fo/images/a2.jpg" alt="空香炉">
        </div>   
    <?php  } ?>
    <!--判断是否上佛-->
    
    
    <div class="light">
        <img src="<?php echo MODULE_URL;?>public/fo/images/light.png" alt="花灯">
    </div>
    <div class="light two">
        <img src="<?php echo MODULE_URL;?>public/fo/images/light.png" alt="花灯">
    </div>
    
<?php  if($_GET['status'] != 1) { ?>
    <div class="incense">
        <a href="<?php  echo $this->createMobileUrl('gongpin')?>"><img src="<?php echo MODULE_URL;?>public/fo/images/sx.png" alt="上香"></a>
    </div>
    <?php  } ?>
</div>

<!-- 二维码 -->
<div class="qrcode">
    <div class="imgbox">
        <img src="<?php echo MODULE_URL;?>public/fo/images/wxm.jpg" alt="二维码">
    </div>
    <p>长按二维码识别关注</p>
    <p>即可马上礼佛</p>
</div> 
<!-- 二维码 -->

<!-- 随喜赞叹 -->
<?php  if($_GET['status'] == 1) { ?>
<div class="indextip" id="indextip">
    <div class="cont">
        随喜赞叹，您今天供佛圆满请做<br>回向，积累功德消业障
    </div>
    <ul class="indextip_btn">
        <li><a href="<?php  echo $this->createMobileUrl('huiinfo')?>">确定</a></li>
        <li><a href="javascript:;" class="cancel">取消</a></li>
    </ul>
</div>
<?php  } ?>
<!-- 随喜赞叹 -->
<!-- 精进榜 -->
<?php  if(1 == 2) { ?>
<div class="indextip" id="indextip">
    <div class="cont">
        您已连续供佛1天，还需继续供佛6天，<br>即可进入精进榜，还望您精进供佛
    </div>
    <ul class="indextip_btn">
        <li style="width:100%"><a href="<?php  echo $this->createMobileUrl('bang')?>">查看榜单</a></li>
    </ul>
</div>
<?php  } ?>
<!-- 精进榜 -->
<!-- 底部导航 -->
 <?php (!empty($this) && $this instanceof WeModuleSite) ? (include $this->template('baifocommon/nav', TEMPLATE_INCLUDEPATH)) : (include template('baifocommon/nav', TEMPLATE_INCLUDEPATH));?>
<!-- 底部导航 -->
<div id="mask"></div>

<script src="<?php echo MODULE_URL;?>public/fo/js/fun.js"></script>
<script>
    $(function(){

        $('.music').on('tap', function(){
            if (!$(this).hasClass('off')){
                $(this).addClass('off');
                $('audio').get(0).pause();
            }else {
                $(this).removeClass('off');
                $('audio').get(0).play();
            }
        });

        $('body').bind('touchstart', function(){
            if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
                if(!$('.music').hasClass('off')){
                    $('audio').get(0).play();
                }else{
                    $('audio').get(0).pause();
                }
            }
        });
        setTimeout(function(){
            $('#listTip').css('display', 'block');
        }, 3000);
        $('a.cancel').on('tap', function(){
            $('#indextip, #indexmask').css('display', 'none');
        });
        $('a.close').on('tap', function(){
            $(this).parent().css('display', 'none');
        });

        var issub = "";
        $('.incense>a').on('tap', function(){
            if(issub==0 || issub==2){
                $('.qrcode').css('display', 'block');
            }else{
                location.href = "./index.php?i=1&c=entry&do=gongpin&m=fo";//跳转到选择贡品页
            }
        });

    });
</script>
</body>
</html>